﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EvoAlgLib
{
    public class TSPFactory: IndFactory
    {
        private String type;
        private double p_mutate;
        public void setType(String t)
        {
            this.type = t;
        }
        public void setPMutate(double pm)
        {
            this.p_mutate = pm;
        }

        public Individual getIndividual()
        {
            return new TSPIndividual(this.p_mutate);
        }
        public Individual getIndividual(Individual other)
        {
            return new TSPIndividual((TSPIndividual)other);
        }
    }
}
